Skip to main content

Zero Trust API

Use this API to assign dedicated nodes to specific clients and client groups

caution

Never send the server-to-server API key from the client-side

List available nodes​

List all available nodes for your project

POST Request
https://{vpn-brand}.vpngn.com/api/zt/servers/list

Request Parameters:

Assign a client to a node​

Allow a specific client to use the specified node

POST Request
https://{vpn-brand}.vpngn.com/api/zt/clients/assignserver

Request Parameters:

Unassign a client from a node​

Disallow a specific client from using a specified node

POST Request
https://{vpn-brand}.vpngn.com/api/zt/clients/unassignserver

Request Parameters:

  • apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
  • email - (AMAPI client)
  • zt_server_id - The server ID (from the /zt/servers endpoint) to unassign from the client

List clients​

List all clients with current Zero Trust Access

POST Request
https://{vpn-brand}.vpngn.com/api/zt/clients/list

Request Parameters:

Optional Parameters:

  • email - (optional - AMAPI client)

List all nodes available to the client​

Use this endpoint to fetch the node list available for the logged-in end-user

tip

Since API key is not required, this endpoint is safe to use from the client-side.

POST Request
https://{vpn-brand}.vpngn.com/api/serverlist/zt
  • Auth - Pass an Authorization header carrying the Bearer <Short-Token-Here> with the end-user's current short-token value

Client groups​

Assign clients to a client group in order to assign / unassign multiple clients at the same time

List client groups​

List all the client groups

POST Request
https://{vpn-brand}.vpngn.com/api/zt/groups/list

Request Parameters:

Add a new client group​

Add a client group to your account

POST Request
https://{vpn-brand}.vpngn.com/api/zt/groups/add

Request Parameters:

Assign a client to a client group​

Add a specific client to a specified client group

POST Request
https://{vpn-brand}.vpngn.com/api/zt/clients/assigngroup

Request Parameters:

Unassign a client from a client group​

Remove a specific client to a specified client group

POST Request
https://{vpn-brand}.vpngn.com/api/zt/clients/unassigngroup

Assign an entire client group to a node​

Allow a specific client to use a specified node

POST Request
https://{vpn-brand}.vpngn.com/api/zt/groups/assignserver

Request Parameters:

  • apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
  • zt_group_id - The ID of the relevant group (from the /zt/groups endpoint)
  • zt_server_id - The server ID (from the /zt/servers endpoint) to assign to the group

Unassign an entire client group from a node​

Disallow a specific client from using a specified node

POST Request
https://{vpn-brand}.vpngn.com/api/zt/groups/unassignserver

Request Parameters:

  • apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
  • zt_group_id - The ID of the relevant group (from the /zt/groups endpoint)
  • zt_server_id - The server ID (from the /zt/servers endpoint) to unassign from the group